package com.gp.learn.common.core.mybaitsplus.constants;

public enum ErrorCode {
    /**
     * 成功
     */
    OK(100, "操作成功"),
    FAIL(101, "操作失败");

    private int code;
    private String message;

    private ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
